Calculate the absolute value of a floating point numberΒΆ

Calculate the absolute value of a floating point number.
Expected output:
2.1
0.0
10.1
0.0
import math

print(math.fabs(-2.1))    # 2.1
print(math.fabs(-0.0))    # 0.0
print(math.fabs(10.1))    # 10.1
print(math.fabs(0.0))     # 0.0